package com.mjf.ys.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * desc
 * </p>
 *
 * @author chenshoumeng
 * @date 2025/6/30 01:48
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class SalesoutDetailVO {

    private String code;
    private String message;
    private DataVO data;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class DataVO {
        private List<DetailVO> details;
    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class DetailVO {
        private Long id;
        /**
         * "product": "",
         * 				"product_cCode": "",
         * 				"product_cName": "",
         */
        private String product; // 物料主键
        private String product_cCode; // 物料编码
        private String product_cName; // 物料名称
        private BigDecimal natsum; // 本币含税金额

        private BigDecimal natmoney; // 本币无税金额

        private BigDecimal nattax; // 本币税额

        private String unitname; // 主计量单位名称
        private String taxrate; // 税率

        private BigDecimal nattaxunitprice; // 含税单价

        private BigDecimal natunitprice; // 无税单价

        private BigDecimal qty; // 数量
        private SalesOutsDefineCharacter salesOutsDefineCharacter;
        private BigDecimal costUnitPrice; // 成本单价
        private BigDecimal costMoney; // 成本金额
    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class SalesOutsDefineCharacter {

        private BigDecimal XS00004; // 运费金额
        private BigDecimal yfdj; // 运费单价
        private BigDecimal XS00014; // 单品发货重量
    }

}
